#include <stdio.h>
#include <unistd.h>

int main()
{
   extern char** environ;
   pid_t id=fork();

   if(id>0)
   {
      printf("你爹来咯,hah\n");
      //execl("/usr/bin/ls","ls","-a","-l",NULL);
     // char* const argv[]={"ls","-a","-l",NULL};
     // execv("/usr/bin/ls",argv);
    // execl("./change","change",NULL);
     //execle("./test","test",NULL,environ);
     char* const myargv[]={"test","-p","-j","-w",NULL};
     char* const myenv[]={"pjw=315","gxq=325",NULL};
     execvpe("./test",myargv,myenv);
    // printf("你爹走咯，hah");
   }

   printf("我是你儿^_^\n");

   return 0;
}
